import Vue from "vue";
import {
  Form,
  Field,
  Button,
  NavBar,
  Tabbar,
  TabbarItem,
  Icon,
  Tab,
  Tabs,
  Cell,
  CellGroup,
  List,
  PullRefresh,
  ActionSheet,
  Popup,
  Col,
  Badge,
  Row,
  Search,
  Image as VanImage,
  Divider,
  Tag,
  DatetimePicker,
  Loading,
  Lazyload,
} from "vant";
Vue.use(Form);
Vue.use(Field);
Vue.use(Button);
Vue.use(NavBar);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Icon);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(List);
Vue.use(PullRefresh);
Vue.use(ActionSheet);
Vue.use(Popup);
Vue.use(Badge);
Vue.use(Row);
Vue.use(Col);
Vue.use(Search);
Vue.use(VanImage);
Vue.use(Divider);
Vue.use(Tag);
Vue.use(DatetimePicker);
Vue.use(Loading);
Vue.use(Lazyload, {
  lazyComponent: true, //只能对img标签生效
  preLoad: 0.8, //预加载范围
  //图片404使用的图片
  error:
    "https://gimg2.baidu.com/image_search/src=http%3A%2F%2F5b0988e595225.cdn.sohucs.com%2Fimages%2F20180426%2F8d46d27e4f4444feb7835b38ce968430.gif&refer=http%3A%2F%2F5b0988e595225.cdn.sohucs.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1657272249&t=cc8c5da45883e5c96b070373a92d670d",
});


